// app.ts
App<IAppOption>({
  globalData: {
    apiUrl: 'https://jxt.ybsit.com/',
    mobile: '',
    wechat: ''
  },
  onLaunch() {
    let that = this
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    wx.request({
      url: that.globalData.apiUrl + 'api/config/1/detail',
      success: function (res: any) {
        if (res.data.code == 0) {
          that.globalData.mobile = res.data.data.mobile,
          that.globalData.wechat = res.data.data.wechat_official_account
        }
      }
    })
  },
})